package com.springboot.chapter2;

import com.springboot.chapter2.utils.ResponseData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController2 {
	@GetMapping("/test1")
	public String test1(){
		int i = 1/0;
		return "FALSE";
	}
	@GetMapping("test2")
	public ResponseData test3(){
		int[] i={1,2,3};
		System.out.println(i[3]);
		return new ResponseData("200",null,true,null);
	}
}
